package com.thti.mecool.client.widget;

import android.app.Activity;
import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.thti.mecool.client.activity.R;

public class Bubble {
	Activity avtivity;
	Context mcontext;
	public static ImageView logo;
	public static TextView showNum;
	public Bubble(Activity avtivity) {
		super();
		this.avtivity = avtivity;
		init();
	}
	
	public void init(){
//		logo=(ImageView)avtivity.findViewById(R.id.show_imageview);
//		showNum=(TextView)avtivity.findViewById(R.id.show_num);
		logo=(ImageView)avtivity.findViewById(R.id.show_imageview);
		showNum=(TextView)avtivity.findViewById(R.id.show_num);
	}
	
	/**
	 * 影藏显示数量框
	 */
	public static void hideShowNum(){
		showNum.setVisibility(View.GONE);
	}
	/**
	 * 显示数量框
	 */
	public static void showShowNum(){
		showNum.setVisibility(View.VISIBLE);
	}
	/**
	 * 设置显示框数量
	 */
	public void setShowNum(String num){
		showNum.setText(num);
	}
	
	
}
